curse under (one's) breath

Translations
ругаться себе под нос
He cursed under his breath when he realized he forgot his keys.
Он ругался себе под нос, когда понял, что забыл ключи.
Definitions
To speak or express anger or frustration quietly and discreetly, often in a way that is not intended to be heard by others.